using MESData.ErrorCode;
using MESData.ProductionPlan.API.DTO;

namespace MESData.ProductionPlan.API.Services
{
    /// <summary>
    /// 物品服务接口
    /// </summary>
    public interface IItemService
    {
        /// <summary>
        /// 根据物品ID查询对应的仓库名称和库存
        /// </summary>
        /// <param name="itemId">物品ID</param>
        /// <returns></returns>
        Task<ApiResult<List<ItemInventoryDto>>> GetItemInventoriesAsync(int itemId);

        /// <summary>
        /// 查询所有物品的分页显示
        /// </summary>
        /// <param name="queryDto">查询条件</param>
        /// <returns></returns>
        Task<ApiPageing<ItemResultDto>> GetItemsAsync(ItemQueryDto queryDto);
    }
} 